package edu.gyc.mysystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping({"/", ""})
    public String index() {
        return "login";
    }

    @RequestMapping("/menu")
    public String menu() {
        return "/admin/welcome";
    }

    @GetMapping("/unauthorized")
    public String unauthorized() {
        return "unauthorized";
    }
}
